﻿using System;
using RpcModel;
using SqlExecHelper;
using Wedonek.RpcStore.Service.Helper;
using Wedonek.RpcStore.Service.Model;

namespace Wedonek.RpcStore.Service.DAL
{
        internal class SystemErrorLogDAL : SqlBasicClass
        {
                public SystemErrorLogDAL () : base ("SystemErrorLog", "RpcExtendService")
                {

                }
                public SystemErrorLog Get (Guid id)
                {
                        return base.GetRow<Guid, SystemErrorLog> ("Id", id);
                }
                public SysErrorLog[] Query (LogQueryParam query, IBasicPage paging, out long count)
                {
                        paging.InitOrderBy ("Id", true);
                        return base.Query<SysErrorLog> (paging.OrderBy, paging.Index, paging.Size, out count, query.ToWhere ());
                }
        }
}
